import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FormComponent } from './form.component';
import { BaseFormComponent } from './base-form/base-form.component';
import { DynamicFormComponent } from './dynamic-form/dynamic-form.component';
import { RequiredComponent } from './required/required.component';
import { NestedFormComponent } from './nested-form/nested-form.component';

const routes: Routes = [
  { path: '', component: FormComponent },
  { path: 'base', component: BaseFormComponent },
  { path: 'dynamic', component: DynamicFormComponent },
  { path: 'required', component: RequiredComponent },
  { path: 'nest', component: NestedFormComponent },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FormRoutingModule { }
